package factory.simple;

import factory.method.Product1;
import factory.method.Product2;

public class Setup {
	public static void main(String[] args) {

		SimpleFactory simpleFactory = new SimpleFactory();

		Product1 product1 = (Product1) simpleFactory.create(Product1.class);
		product1.run();

		Product2 product2 = (Product2) simpleFactory.create(Product2.class);
		product2.run();
	}
}
